import React from "react";


interface QuickCodeContextProps{
  registerComponents:any
  ItemRender:any
  SingleRender:any
}
export const QuickCodeContext = React.createContext<QuickCodeContextProps>({} as QuickCodeContextProps)

export const QuickCodeProvider = ({ registerComponents, SingleRender,ItemRender,children }: any) => {
  return <QuickCodeContext.Provider value={{ItemRender,SingleRender,registerComponents}}>
    {children}
  </QuickCodeContext.Provider>
}